package vrp;

import com.google.appengine.api.datastore.Key;

import java.util.ArrayList;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable
public class Bundle {
    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private ArrayList<Key> products;

    @Persistent
    private ArrayList<Integer> quantities;

    public Bundle(ArrayList<Key> products, ArrayList<Integer> quantities) {
    	this.products = products;
    	this.quantities = quantities;
    }

    public Key getKey() {
        return this.key;
    }

    public ArrayList<Key> getProducts() {
        return this.products;
    }

    public ArrayList<Integer> getQuantities() {
        return this.quantities;
    }

    public void setKey(Key someKey) {
    	this.key = someKey;
    }

    public void setProducts(ArrayList<Key> products) {
        this.products = products;
    }

    public void setQuantities(ArrayList<Integer> quantities) {
        this.quantities = quantities;
    }
}